<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>EquTemper: ETSheetView.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="$relpath<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$relpath<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">EquTemper&#160;<span id="projectnumber">1.01</span></div>
   <div id="projectbrief">An equation editor.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_e_t_sheet_view_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ETSheetView.h</div>  </div>
</div>
<div class="contents">
<a href="_e_t_sheet_view_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* ========================================================================= */</span>
<a name="l00002"></a>00002 <span class="comment">/* ------------------------------------------------------------------------- */</span><span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">/*!</span>
<a name="l00004"></a>00004 <span class="comment">  \file         ETSheetView.h</span>
<a name="l00005"></a>00005 <span class="comment">  \date         september 2011</span>
<a name="l00006"></a>00006 <span class="comment">  \author       TNick</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">  \brief        Contains the definition for ETSheetView class</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment"></span>
<a name="l00011"></a>00011 <span class="comment">  Copyright (c) 2011, Nicu Tofan</span>
<a name="l00012"></a>00012 <span class="comment"> All rights reserved.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment"> Redistribution and use in source and binary forms, with or without</span>
<a name="l00015"></a>00015 <span class="comment"> modification, are permitted provided that the following conditions are met:</span>
<a name="l00016"></a>00016 <span class="comment"> * Redistributions of source code must retain the above copyright</span>
<a name="l00017"></a>00017 <span class="comment">   notice, this list of conditions and the following disclaimer.</span>
<a name="l00018"></a>00018 <span class="comment"> * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00019"></a>00019 <span class="comment">   notice, this list of conditions and the following disclaimer in the</span>
<a name="l00020"></a>00020 <span class="comment">   documentation and/or other materials provided with the distribution.</span>
<a name="l00021"></a>00021 <span class="comment"> * Neither the name of the copyright holder nor the</span>
<a name="l00022"></a>00022 <span class="comment">   names of its contributors may be used to endorse or promote products</span>
<a name="l00023"></a>00023 <span class="comment">   derived from this software without specific prior written permission.</span>
<a name="l00024"></a>00024 <span class="comment"></span>
<a name="l00025"></a>00025 <span class="comment"> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS &quot;AS IS&quot; AND</span>
<a name="l00026"></a>00026 <span class="comment"> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span>
<a name="l00027"></a>00027 <span class="comment"> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span>
<a name="l00028"></a>00028 <span class="comment"> DISCLAIMED. IN NO EVENT SHALL NICU TOFAN BE LIABLE FOR ANY</span>
<a name="l00029"></a>00029 <span class="comment"> DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span>
<a name="l00030"></a>00030 <span class="comment"> (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span>
<a name="l00031"></a>00031 <span class="comment"> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span>
<a name="l00032"></a>00032 <span class="comment"> ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00033"></a>00033 <span class="comment"> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span>
<a name="l00034"></a>00034 <span class="comment"> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00035"></a>00035 <span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">*/</span>
<a name="l00037"></a>00037 <span class="comment">/* ------------------------------------------------------------------------- */</span>
<a name="l00038"></a>00038 <span class="comment">/* ========================================================================= */</span>
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef __ETSHEETVIEW_INC__</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define __ETSHEETVIEW_INC__</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="comment">//</span>
<a name="l00042"></a>00042 <span class="comment">//</span>
<a name="l00043"></a>00043 <span class="comment">//</span>
<a name="l00044"></a>00044 <span class="comment">//</span>
<a name="l00045"></a>00045 <span class="comment">/*  INCLUDES    ------------------------------------------------------------ */</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#include    &lt;<a class="code" href="main_8h.html" title="Contains global definitions for application.">main.h</a>&gt;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keyword">class       </span><a class="code" href="class_e_t_sub_item.html" title="class representing the common interface exposed by all sub-items of a ETI_CplxTxt">ETSubItem</a>;
<a name="l00050"></a>00050 <span class="keyword">class       </span><a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a>;
<a name="l00051"></a>00051 <span class="keyword">class       </span><a class="code" href="class_e_t_vp_command.html" title="abstract class representing prerequisites for a command running in a ETSheetView">ETVpCommand</a>;
<a name="l00052"></a>00052 <span class="keyword">class       </span><a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a>;
<a name="l00053"></a>00053 <span class="keyword">class       </span>QSplitter;
<a name="l00054"></a>00054 <span class="keyword">class       </span><a class="code" href="class_mdi_child.html" title="form representing a document inside MDI area">MdiChild</a>;
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="preprocessor">#include    &lt;QGraphicsView&gt;</span>
<a name="l00057"></a>00057 <span class="preprocessor">#include    &lt;QDomElement&gt;</span>
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="comment">/*  INCLUDES    ============================================================ */</span>
<a name="l00060"></a>00060 <span class="comment">//</span>
<a name="l00061"></a>00061 <span class="comment">//</span>
<a name="l00062"></a>00062 <span class="comment">//</span>
<a name="l00063"></a>00063 <span class="comment">//</span>
<a name="l00064"></a>00064 <span class="comment">/*  CLASS    --------------------------------------------------------------- */</span>
<a name="l00065"></a>00065 <span class="comment"></span>
<a name="l00066"></a>00066 <span class="comment">/// Widget capable of displaying an ETSheet content</span>
<a name="l00067"></a>00067 <span class="comment"></span><span class="comment">/**</span>
<a name="l00068"></a>00068 <span class="comment">*   \section navig  Navigation</span>
<a name="l00069"></a>00069 <span class="comment">*   The part of the ETSheet that is currently displayed may be altered using</span>
<a name="l00070"></a>00070 <span class="comment">*   &lt;a href=&quot;http://doc.qt.nokia.com/latest/qgraphicsview.html#translate&quot;&gt;</span>
<a name="l00071"></a>00071 <span class="comment">*   QGraphicsView::translate()&lt;/a&gt; to move around with relative distances</span>
<a name="l00072"></a>00072 <span class="comment">*   with regards to current position.</span>
<a name="l00073"></a>00073 <span class="comment">*</span>
<a name="l00074"></a>00074 <span class="comment">*   To change magnifying level, one may use</span>
<a name="l00075"></a>00075 <span class="comment">*   &lt;a href=&quot;http://doc.qt.nokia.com/latest/qgraphicsview.html#scale&quot;&gt;</span>
<a name="l00076"></a>00076 <span class="comment">*   QGraphicsView::scale()&lt;/a&gt; or one</span>
<a name="l00077"></a>00077 <span class="comment">*   of the utility functions zoomIn() and zoomOut(). Rotation of the scene</span>
<a name="l00078"></a>00078 <span class="comment">*   relative to the viewport may be adjusted clockwise with respect to current</span>
<a name="l00079"></a>00079 <span class="comment">*   rotation using</span>
<a name="l00080"></a>00080 <span class="comment">*   &lt;a href=&quot;http://doc.qt.nokia.com/latest/qgraphicsview.html#rotate&quot;&gt;</span>
<a name="l00081"></a>00081 <span class="comment">*   QGraphicsView::rotate()&lt;/a&gt; or one of the utility functions</span>
<a name="l00082"></a>00082 <span class="comment">*   rotateLeft() or rotateRight().</span>
<a name="l00083"></a>00083 <span class="comment">*</span>
<a name="l00084"></a>00084 <span class="comment">*   \section commands   Commands</span>
<a name="l00085"></a>00085 <span class="comment">*   Each view is able to maintain a command independent of other views.</span>
<a name="l00086"></a>00086 <span class="comment">*   Having multiple views looking at a single scene means that there may</span>
<a name="l00087"></a>00087 <span class="comment">*   be multiple commands running against same scene. To address possible</span>
<a name="l00088"></a>00088 <span class="comment">*   issues the view is required to only talk with the scene in &quot;atomic&quot;</span>
<a name="l00089"></a>00089 <span class="comment">*   operations (that can&#39;t overlap with operations from other views or</span>
<a name="l00090"></a>00090 <span class="comment">*   started from the code). As such, the (permanent) effect on the scene</span>
<a name="l00091"></a>00091 <span class="comment">*   is only commited when the command finishes and all input from the user</span>
<a name="l00092"></a>00092 <span class="comment">*   has been gathered. Commands may create temporary objects in the scene</span>
<a name="l00093"></a>00093 <span class="comment">*   to show an interactive interface, but are required to limit the use</span>
<a name="l00094"></a>00094 <span class="comment">*   of those as the effect is visible in other views, too.</span>
<a name="l00095"></a>00095 <span class="comment">*</span>
<a name="l00096"></a>00096 <span class="comment">*   Commands are started by creating an instance of a class inherited from</span>
<a name="l00097"></a>00097 <span class="comment">*   ETVpCommand and passing it to startCommand(). While current implementation</span>
<a name="l00098"></a>00098 <span class="comment">*   will always call ETVpCommand::start(), this may change in the future. As a</span>
<a name="l00099"></a>00099 <span class="comment">*   result the command (class) shall only initialise itself when it recieves</span>
<a name="l00100"></a>00100 <span class="comment">*   the ETVpCommand::start(), not in constructor. The class instance needs to</span>
<a name="l00101"></a>00101 <span class="comment">*   be created with new() and the ownership of the pointer is taken by this</span>
<a name="l00102"></a>00102 <span class="comment">*   class (the instance will be deleted() during cancelCommand() call).</span>
<a name="l00103"></a>00103 <span class="comment">*</span>
<a name="l00104"></a>00104 <span class="comment">*   Commands may be canceled by either calling cancelCommand() or</span>
<a name="l00105"></a>00105 <span class="comment">*   acceptCommand(). acceptCommand() will inform the ETVpCommand::accept()</span>
<a name="l00106"></a>00106 <span class="comment">*   function, then will fall back to cancelCommand(). cancelCommand() simply</span>
<a name="l00107"></a>00107 <span class="comment">*   informs the command (class instance) about the event and deletes(!) the</span>
<a name="l00108"></a>00108 <span class="comment">*   class instance.</span>
<a name="l00109"></a>00109 <span class="comment">*</span>
<a name="l00110"></a>00110 <span class="comment">*   While a command is running mouse input and keyboard input is managed by it.</span>
<a name="l00111"></a>00111 <span class="comment">*</span>
<a name="l00112"></a>00112 <span class="comment">*</span>
<a name="l00113"></a>00113 <span class="comment">*   \section sel_support    Current sub-item</span>
<a name="l00114"></a>00114 <span class="comment">*   Each ETSheetView instance keeps it&#39;s own currently selected sub-item</span>
<a name="l00115"></a>00115 <span class="comment">*   saved. As a logic result, if more than one views are looking into a</span>
<a name="l00116"></a>00116 <span class="comment">*   ETSheet, more than one items belonging to that ETSheet may be current</span>
<a name="l00117"></a>00117 <span class="comment">*   at the same time, but only one is current in a particular view.</span>
<a name="l00118"></a>00118 <span class="comment">*</span>
<a name="l00119"></a>00119 <span class="comment">*   The current sub-item reveals the element that the user is focusing</span>
<a name="l00120"></a>00120 <span class="comment">*   at any given time and may be NULL (no current item). The user manipulates</span>
<a name="l00121"></a>00121 <span class="comment">*   the current item using keyboard amd mouse.</span>
<a name="l00122"></a>00122 <span class="comment">*</span>
<a name="l00123"></a>00123 <span class="comment">*   setCurrentSubI() is simply informed about the selection change. It does</span>
<a name="l00124"></a>00124 <span class="comment">*   not perform steps to change the apparence of the item. To do so, use</span>
<a name="l00125"></a>00125 <span class="comment">*   makeCurrentSubI().</span>
<a name="l00126"></a>00126 <span class="comment">*</span>
<a name="l00127"></a>00127 <span class="comment">*</span>
<a name="l00128"></a>00128 <span class="comment">*   \section edit_support   Editing</span>
<a name="l00129"></a>00129 <span class="comment">*   Items contained in the ETSheet may be edited using appropriate widgets</span>
<a name="l00130"></a>00130 <span class="comment">*   that are created when the editing starts and destroyed when focus is lost</span>
<a name="l00131"></a>00131 <span class="comment">*   or the user accepts the change.</span>
<a name="l00132"></a>00132 <span class="comment">*</span>
<a name="l00133"></a>00133 <span class="comment">*   Creating the editors is the responsability of the sub-item involved.</span>
<a name="l00134"></a>00134 <span class="comment">*   Once created and parented to an ETSheetView instance, the ownership is</span>
<a name="l00135"></a>00135 <span class="comment">*   taken over by this class via a call to setEditor(). This will properly</span>
<a name="l00136"></a>00136 <span class="comment">*   destroy previously existing editor (if any) and will save the new one.</span>
<a name="l00137"></a>00137 <span class="comment">*   Note that the function assumes that the sub-item being edited is the one</span>
<a name="l00138"></a>00138 <span class="comment">*   stored inside crt_sub_itm, which is true when editing is started by</span>
<a name="l00139"></a>00139 <span class="comment">*   the user.</span>
<a name="l00140"></a>00140 <span class="comment">*</span>
<a name="l00141"></a>00141 <span class="comment">*   One may find if the ETSheetView instance has an editor opened by calling</span>
<a name="l00142"></a>00142 <span class="comment">*   inEditMode(). If true, editor() will return the pointer to that editor; if</span>
<a name="l00143"></a>00143 <span class="comment">*   false, the function returns NULL.</span>
<a name="l00144"></a>00144 <span class="comment">*</span>
<a name="l00145"></a>00145 <span class="comment">*   All events that shall result in editor being closed must call</span>
<a name="l00146"></a>00146 <span class="comment">*   closeEditor(). It enshures proper resource release while the content</span>
<a name="l00147"></a>00147 <span class="comment">*   of the editor is saved back to originating sub-item saved inside</span>
<a name="l00148"></a>00148 <span class="comment">*   crt_sub_itm.</span>
<a name="l00149"></a>00149 <span class="comment">*</span>
<a name="l00150"></a>00150 <span class="comment">*</span>
<a name="l00151"></a>00151 <span class="comment">*   \section save_load  Saving and loading from xml file</span>
<a name="l00152"></a>00152 <span class="comment">*   A set of functions are dedicated to perform these tasks. First, entire</span>
<a name="l00153"></a>00153 <span class="comment">*   tree is saved using the static saveXML(). This will fill the top level</span>
<a name="l00154"></a>00154 <span class="comment">*   node with informations about all splits and viewports that are present in the</span>
<a name="l00155"></a>00155 <span class="comment">*   GUI at that moment. The function makes use of saveXMLViewport() for</span>
<a name="l00156"></a>00156 <span class="comment">*   viewports and saveXMLVpSplit() for splits to recursivelly save the tree.</span>
<a name="l00157"></a>00157 <span class="comment">*</span>
<a name="l00158"></a>00158 <span class="comment">*   Loading viewports from a DOM tree is done using loadXMLViewport() and</span>
<a name="l00159"></a>00159 <span class="comment">*   loadXMLVpSplit(). These functionsalso work recursivelly to recreate entire</span>
<a name="l00160"></a>00160 <span class="comment">*   tree of splits and viewports.</span>
<a name="l00161"></a>00161 <span class="comment">*</span>
<a name="l00162"></a>00162 <span class="comment">*   The format of the file that is saved follows the guidance in</span>
<a name="l00163"></a>00163 <span class="comment">*   &lt;a href=&quot;https://code.google.com/p/equtemper/source/browse/trunk/doc/example.xml&quot;&gt;</span>
<a name="l00164"></a>00164 <span class="comment">*   example.xml&lt;/a&gt; that is located in</span>
<a name="l00165"></a>00165 <span class="comment">*   &lt;a href=&quot;https://code.google.com/p/equtemper/source/browse/trunk/doc&quot;&gt;doc&lt;/a&gt;</span>
<a name="l00166"></a>00166 <span class="comment">*   subfolder.</span>
<a name="l00167"></a>00167 <span class="comment">*</span>
<a name="l00168"></a>00168 <span class="comment">*</span>
<a name="l00169"></a>00169 <span class="comment">*   \section various    Various</span>
<a name="l00170"></a>00170 <span class="comment">*   To make an sub-item properly visible inside this view, use makeSubIVisible().</span>
<a name="l00171"></a>00171 <span class="comment">*   If the complete item needs to be presented, disregarding any sub-item,</span>
<a name="l00172"></a>00172 <span class="comment">*   then makeIVisible() may be used. Both of these functions first look at the</span>
<a name="l00173"></a>00173 <span class="comment">*   size of the text and, if too large or too small, scale factor is adjusted.</span>
<a name="l00174"></a>00174 <span class="comment">*   Second, the location is checked against visible rectangle and, if outside,</span>
<a name="l00175"></a>00175 <span class="comment">*   the item is panned in view. If the view rectangle is not large enough</span>
<a name="l00176"></a>00176 <span class="comment">*   to show the entire entity, then top left corner is preffered. The functions</span>
<a name="l00177"></a>00177 <span class="comment">*   properly take into account the rotation of the view relative to scene.</span>
<a name="l00178"></a>00178 <span class="comment">*</span>
<a name="l00179"></a>00179 <span class="comment">*</span>
<a name="l00180"></a>00180 <span class="comment">*</span>
<a name="l00181"></a>00181 <span class="comment">*</span>
<a name="l00182"></a>00182 <span class="comment">*</span>
<a name="l00183"></a>00183 <span class="comment">*/</span>
<a name="l00184"></a><a class="code" href="class_e_t_sheet_view.html">00184</a> <span class="keyword">class </span><a class="code" href="class_e_t_sheet_view.html" title="Widget capable of displaying an ETSheet content.">ETSheetView</a> : <span class="keyword">public</span> QGraphicsView <a class="code" href="ddhc__main_8h.html#a11c872f3f4013282773f6329628a4989">DDHC_INHERIT</a>       {
<a name="l00185"></a><a class="code" href="class_e_t_sheet_view.html#a18fc4426fbac91277d12c96ef6e8f489">00185</a>     <a class="code" href="ddhc__main_8h.html#a93273add2edbf58828a7c139577170ec">DDHC_CLASS</a>
<a name="l00186"></a>00186 
<a name="l00187"></a>00187     <span class="comment">//</span>
<a name="l00188"></a>00188     <span class="comment">//</span>
<a name="l00189"></a>00189     <span class="comment">//</span>
<a name="l00190"></a>00190     <span class="comment">//</span>
<a name="l00191"></a>00191     <span class="comment">/*  DEFINITIONS    ----------------------------------------------------- */</span>
<a name="l00192"></a>00192 <span class="comment"></span>
<a name="l00193"></a>00193 <span class="comment">    /// data about one split element (may be a viewport or another split)</span>
<a name="l00194"></a><a class="code" href="struct_e_t_sheet_view_1_1_split_el.html">00194</a> <span class="comment"></span>    <span class="keyword">struct  </span><a class="code" href="struct_e_t_sheet_view_1_1_split_el.html" title="data about one split element (may be a viewport or another split)">SplitEl</a>     {
<a name="l00195"></a><a class="code" href="struct_e_t_sheet_view_1_1_split_el.html#aaa703353aed1fb271c1ebeb88738fa87">00195</a>         <span class="keywordtype">bool</span>    <a class="code" href="struct_e_t_sheet_view_1_1_split_el.html#aaa703353aed1fb271c1ebeb88738fa87">b_is_vp</a>;
<a name="l00196"></a>00196         <span class="keyword">union   </span>{
<a name="l00197"></a><a class="code" href="struct_e_t_sheet_view_1_1_split_el.html#a51e1a21000866de6e2dd937c90d39f4c">00197</a>             <span class="keyword">const</span> <a class="code" href="class_e_t_sheet_view.html" title="Widget capable of displaying an ETSheet content.">ETSheetView</a> *     <a class="code" href="struct_e_t_sheet_view_1_1_split_el.html#a51e1a21000866de6e2dd937c90d39f4c">vp</a>;
<a name="l00198"></a><a class="code" href="struct_e_t_sheet_view_1_1_split_el.html#ac7799fa85a157eec711779dc88b69184">00198</a>             <span class="keyword">const</span> QSplitter *       <a class="code" href="struct_e_t_sheet_view_1_1_split_el.html#ac7799fa85a157eec711779dc88b69184">split</a>;
<a name="l00199"></a>00199         } <a class="code" href="struct_e_t_sheet_view_1_1_split_el.html#a15c1ab4d127bc97a1c5fb1445fc2d986">comp</a>;
<a name="l00200"></a>00200     };
<a name="l00201"></a>00201 <span class="comment"></span>
<a name="l00202"></a>00202 <span class="comment">    /// structure grouping data about one split and it&#39;s content</span>
<a name="l00203"></a><a class="code" href="struct_e_t_sheet_view_1_1_split_data.html">00203</a> <span class="comment"></span>    <span class="keyword">struct  </span><a class="code" href="struct_e_t_sheet_view_1_1_split_data.html" title="structure grouping data about one split and it&#39;s content">SplitData</a>   {
<a name="l00204"></a><a class="code" href="struct_e_t_sheet_view_1_1_split_data.html#a6b7b9da321b08563590bce091b644c20">00204</a>         <a class="code" href="struct_e_t_sheet_view_1_1_split_el.html" title="data about one split element (may be a viewport or another split)">SplitEl</a>         <a class="code" href="struct_e_t_sheet_view_1_1_split_data.html#a6b7b9da321b08563590bce091b644c20">first</a>;
<a name="l00205"></a><a class="code" href="struct_e_t_sheet_view_1_1_split_data.html#aeaae7e7759740c57ebcd935b9af13554">00205</a>         <a class="code" href="struct_e_t_sheet_view_1_1_split_el.html" title="data about one split element (may be a viewport or another split)">SplitEl</a>         <a class="code" href="struct_e_t_sheet_view_1_1_split_data.html#aeaae7e7759740c57ebcd935b9af13554">sec</a>;
<a name="l00206"></a>00206     };
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 
<a name="l00209"></a>00209     <span class="comment">/*  DEFINITIONS    ===================================================== */</span>
<a name="l00210"></a>00210     <span class="comment">//</span>
<a name="l00211"></a>00211     <span class="comment">//</span>
<a name="l00212"></a>00212     <span class="comment">//</span>
<a name="l00213"></a>00213     <span class="comment">//</span>
<a name="l00214"></a>00214     <span class="comment">/*  DATA    ------------------------------------------------------------ */</span>
<a name="l00215"></a>00215 
<a name="l00216"></a>00216 <span class="keyword">private</span>:
<a name="l00217"></a>00217 <span class="comment"></span>
<a name="l00218"></a>00218 <span class="comment">    /// either a pointer to current editor or NULL if none is visible</span>
<a name="l00219"></a><a class="code" href="class_e_t_sheet_view.html#a409d391051af68ef61ea75b882301be7">00219</a> <span class="comment"></span>    QWidget *           <a class="code" href="class_e_t_sheet_view.html#a409d391051af68ef61ea75b882301be7" title="either a pointer to current editor or NULL if none is visible">temp_editor</a>;
<a name="l00220"></a>00220 <span class="comment"></span>
<a name="l00221"></a>00221 <span class="comment">    /// cached parent of the current sub-item (crt_sub_itm)</span>
<a name="l00222"></a><a class="code" href="class_e_t_sheet_view.html#a11491d5408d86f8277e00faf7929e401">00222</a> <span class="comment"></span>    <a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> *       <a class="code" href="class_e_t_sheet_view.html#a11491d5408d86f8277e00faf7929e401" title="cached parent of the current sub-item (crt_sub_itm)">crt_itm</a>;
<a name="l00223"></a>00223 <span class="comment"></span>
<a name="l00224"></a>00224 <span class="comment">    /// current sub-item</span>
<a name="l00225"></a><a class="code" href="class_e_t_sheet_view.html#a49fe03247d07fdc4227bc45f688c7a17">00225</a> <span class="comment"></span>    <a class="code" href="class_e_t_sub_item.html" title="class representing the common interface exposed by all sub-items of a ETI_CplxTxt">ETSubItem</a> *         <a class="code" href="class_e_t_sheet_view.html#a49fe03247d07fdc4227bc45f688c7a17" title="current sub-item">crt_sub_itm</a>;
<a name="l00226"></a>00226 <span class="comment"></span>
<a name="l00227"></a>00227 <span class="comment">    /// currently running command / NULL if none is running</span>
<a name="l00228"></a><a class="code" href="class_e_t_sheet_view.html#a6ad3d85251cba7939ca695e01e809888">00228</a> <span class="comment"></span>    <a class="code" href="class_e_t_vp_command.html" title="abstract class representing prerequisites for a command running in a ETSheetView">ETVpCommand</a> *       <a class="code" href="class_e_t_sheet_view.html#a6ad3d85251cba7939ca695e01e809888" title="currently running command / NULL if none is running">running_command</a>;
<a name="l00229"></a>00229 <span class="comment"></span>
<a name="l00230"></a>00230 <span class="comment">    /// selection is either on the right or on the left side</span>
<a name="l00231"></a><a class="code" href="class_e_t_sheet_view.html#a21dc71862f8aeb325faffe7cc060c33f">00231</a> <span class="comment"></span>    <span class="keywordtype">bool</span>                <a class="code" href="class_e_t_sheet_view.html#a21dc71862f8aeb325faffe7cc060c33f" title="selection is either on the right or on the left side">b_sel_left</a>;
<a name="l00232"></a>00232 <span class="comment"></span>
<a name="l00233"></a>00233 <span class="comment">    /// cache current rotation angle for simplicity</span>
<a name="l00234"></a><a class="code" href="class_e_t_sheet_view.html#ae5f4709acc5b13182abb58f81bad6ae3">00234</a> <span class="comment"></span>    qreal               <a class="code" href="class_e_t_sheet_view.html#ae5f4709acc5b13182abb58f81bad6ae3" title="cache current rotation angle for simplicity">rot_ang_to_s</a>;
<a name="l00235"></a>00235 <span class="comment"></span>
<a name="l00236"></a>00236 <span class="comment">    /// cache current scale for simplicity</span>
<a name="l00237"></a><a class="code" href="class_e_t_sheet_view.html#a0a48b30df2d2cbf0d6bdea2ce12a63c8">00237</a> <span class="comment"></span>    qreal               <a class="code" href="class_e_t_sheet_view.html#a0a48b30df2d2cbf0d6bdea2ce12a63c8" title="cache current scale for simplicity">scale_to_s</a>;
<a name="l00238"></a>00238 <span class="comment"></span>
<a name="l00239"></a>00239 <span class="comment">    /// the translation on X axis</span>
<a name="l00240"></a><a class="code" href="class_e_t_sheet_view.html#a02068ab57a1fa473306bc418dd913c23">00240</a> <span class="comment"></span>    qreal               <a class="code" href="class_e_t_sheet_view.html#a02068ab57a1fa473306bc418dd913c23" title="the translation on X axis">trans_x</a>;
<a name="l00241"></a>00241 <span class="comment"></span>
<a name="l00242"></a>00242 <span class="comment">    /// the translation on Y axis</span>
<a name="l00243"></a><a class="code" href="class_e_t_sheet_view.html#aa8d2d483616fc12bb11e0799258cb614">00243</a> <span class="comment"></span>    qreal               <a class="code" href="class_e_t_sheet_view.html#aa8d2d483616fc12bb11e0799258cb614" title="the translation on Y axis">trans_y</a>;
<a name="l00244"></a>00244 
<a name="l00245"></a>00245 
<a name="l00246"></a>00246     <span class="comment">/*  DATA    ============================================================ */</span>
<a name="l00247"></a>00247     <span class="comment">//</span>
<a name="l00248"></a>00248     <span class="comment">//</span>
<a name="l00249"></a>00249     <span class="comment">//</span>
<a name="l00250"></a>00250     <span class="comment">//</span>
<a name="l00251"></a>00251     <span class="comment">/*  FUNCTIONS    ------------------------------------------------------- */</span>
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 <span class="keyword">public</span>:
<a name="l00254"></a>00254 <span class="comment"></span>
<a name="l00255"></a>00255 <span class="comment">    /// constructor;</span>
<a name="l00256"></a>00256 <span class="comment"></span>    <a class="code" href="class_e_t_sheet_view.html#af4f9608ab11edd65c3b1a1f532dbcf4f" title="constructor;">ETSheetView</a>         (
<a name="l00257"></a>00257             <a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a> *       the_scene,
<a name="l00258"></a>00258             QWidget *       parent = 0
<a name="l00259"></a>00259             );
<a name="l00260"></a>00260 <span class="comment"></span>
<a name="l00261"></a>00261 <span class="comment">    /// destructor</span>
<a name="l00262"></a>00262 <span class="comment"></span>    <span class="keyword">virtual</span>             <a class="code" href="class_e_t_sheet_view.html#add77f46ae7d28f224aba2bfd2040b0f6" title="destructor">~ETSheetView</a>        ( <span class="keywordtype">void</span> );
<a name="l00263"></a>00263 
<a name="l00264"></a>00264 <span class="comment"></span>
<a name="l00265"></a>00265 <span class="comment">    /// make the sub-item provided in the argument properly visible</span>
<a name="l00266"></a>00266 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#aae4b82e3f9a787dcd60f6bd93928efe3" title="make the sub-item provided in the argument properly visible">makeSubIVisible</a>     (<a class="code" href="class_e_t_sub_item.html" title="class representing the common interface exposed by all sub-items of a ETI_CplxTxt">ETSubItem</a> * trg_si);
<a name="l00267"></a>00267 <span class="comment"></span>
<a name="l00268"></a>00268 <span class="comment">    /// make the item provided in the argument properly visible</span>
<a name="l00269"></a>00269 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#a238764c980c326bc87d71cafeb397709" title="make the item provided in the argument properly visible">makeIVisible</a>        (<a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> * trg_si);
<a name="l00270"></a>00270 
<a name="l00271"></a>00271 
<a name="l00272"></a>00272 
<a name="l00273"></a>00273 
<a name="l00274"></a>00274 
<a name="l00275"></a>00275     <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span><span class="comment"></span>
<a name="l00276"></a>00276 <span class="comment">    /** @name Current sub-item     */</span><span class="comment"></span>
<a name="l00277"></a>00277 <span class="comment">    //@{</span>
<a name="l00278"></a>00278 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00279"></a>00279 
<a name="l00280"></a>00280 <span class="comment"></span>
<a name="l00281"></a>00281 <span class="comment">    /// tell which is currenly selected sub-item in this view</span>
<a name="l00282"></a><a class="code" href="class_e_t_sheet_view.html#af772d536773e6acb31413fb6a5f8cade">00282</a> <span class="comment"></span>    <span class="keyword">inline</span> <a class="code" href="class_e_t_sub_item.html" title="class representing the common interface exposed by all sub-items of a ETI_CplxTxt">ETSubItem</a> *  <a class="code" href="class_e_t_sheet_view.html#af772d536773e6acb31413fb6a5f8cade" title="tell which is currenly selected sub-item in this view">currentSubI</a>         ( <span class="keywordtype">void</span> )
<a name="l00283"></a>00283     { <span class="keywordflow">return</span> <a class="code" href="class_e_t_sheet_view.html#a49fe03247d07fdc4227bc45f688c7a17" title="current sub-item">crt_sub_itm</a>; }
<a name="l00284"></a>00284 <span class="comment"></span>
<a name="l00285"></a>00285 <span class="comment">    /// tell which is the parent for currenly selected sub-item in this view</span>
<a name="l00286"></a><a class="code" href="class_e_t_sheet_view.html#ace5bbf9569571e95b2cb3e4ca010ae76">00286</a> <span class="comment"></span>    <span class="keyword">inline</span> <a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> *<a class="code" href="class_e_t_sheet_view.html#ace5bbf9569571e95b2cb3e4ca010ae76" title="tell which is the parent for currenly selected sub-item in this view">currentItem</a>         ( <span class="keywordtype">void</span> )
<a name="l00287"></a>00287     { <span class="keywordflow">return</span> <a class="code" href="class_e_t_sheet_view.html#a11491d5408d86f8277e00faf7929e401" title="cached parent of the current sub-item (crt_sub_itm)">crt_itm</a>; }
<a name="l00288"></a>00288 
<a name="l00289"></a>00289 <span class="comment"></span>
<a name="l00290"></a>00290 <span class="comment">    /// inform the view that a new current item was decided</span>
<a name="l00291"></a>00291 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#ae2acde853ced4e5b49913cc048fa5abc" title="inform the view that a new current item was decided">setCurrentSubI</a>      (
<a name="l00292"></a>00292             <a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> *       new_i, <span class="comment">/**&lt; parent of current sub-item; may be</span>
<a name="l00293"></a>00293 <span class="comment">            NULL, in wich case it will be</span>
<a name="l00294"></a>00294 <span class="comment">            searched using new_si */</span>
<a name="l00295"></a>00295             <a class="code" href="class_e_t_sub_item.html" title="class representing the common interface exposed by all sub-items of a ETI_CplxTxt">ETSubItem</a> *         new_si <span class="comment">/**&lt; sub-item to amke current in</span>
<a name="l00296"></a>00296 <span class="comment">            this view */</span>
<a name="l00297"></a>00297             );
<a name="l00298"></a>00298 
<a name="l00299"></a>00299 <span class="comment"></span>
<a name="l00300"></a>00300 <span class="comment">    /// perform all actions required to make this item current in this view</span>
<a name="l00301"></a>00301 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#ab25d1eedd8c99747c31e8a63b461b9b6" title="perform all actions required to make this item current in this view">makeCurrentSubI</a>     (
<a name="l00302"></a>00302             <a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> *       new_i, <span class="comment">/**&lt; parent of current sub-item; may be</span>
<a name="l00303"></a>00303 <span class="comment">            NULL, in wich case it will be</span>
<a name="l00304"></a>00304 <span class="comment">            searched using new_si */</span>
<a name="l00305"></a>00305             <a class="code" href="class_e_t_sub_item.html" title="class representing the common interface exposed by all sub-items of a ETI_CplxTxt">ETSubItem</a> *         new_si <span class="comment">/**&lt; sub-item to amke current in</span>
<a name="l00306"></a>00306 <span class="comment">            this view */</span>
<a name="l00307"></a>00307             );
<a name="l00308"></a>00308 
<a name="l00309"></a>00309 <span class="comment"></span>
<a name="l00310"></a>00310 <span class="comment">    /// tells if the sellection appears on the left (true) or on the right (false)</span>
<a name="l00311"></a><a class="code" href="class_e_t_sheet_view.html#a566550e7c12d84a8d187f2607ef889f0">00311</a> <span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">bool</span>         <a class="code" href="class_e_t_sheet_view.html#a566550e7c12d84a8d187f2607ef889f0" title="tells if the sellection appears on the left (true) or on the right (false)">selIsLeft</a>           ( <span class="keywordtype">void</span> )
<a name="l00312"></a>00312     { <span class="keywordflow">return</span> <a class="code" href="class_e_t_sheet_view.html#a21dc71862f8aeb325faffe7cc060c33f" title="selection is either on the right or on the left side">b_sel_left</a>; }
<a name="l00313"></a>00313 
<a name="l00314"></a>00314 <span class="comment"></span>
<a name="l00315"></a>00315 <span class="comment">    /// informs the viewport that the selection is on the left side</span>
<a name="l00316"></a><a class="code" href="class_e_t_sheet_view.html#a66c17e719116958234212c3a82310300">00316</a> <span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">void</span>         <a class="code" href="class_e_t_sheet_view.html#a66c17e719116958234212c3a82310300" title="informs the viewport that the selection is on the left side">setSelLeft</a>          ( <span class="keywordtype">void</span> )
<a name="l00317"></a>00317     { <a class="code" href="class_e_t_sheet_view.html#a21dc71862f8aeb325faffe7cc060c33f" title="selection is either on the right or on the left side">b_sel_left</a> = <span class="keyword">true</span>; }
<a name="l00318"></a>00318 
<a name="l00319"></a>00319 <span class="comment"></span>
<a name="l00320"></a>00320 <span class="comment">    /// informs the viewport that the selection is on the right side</span>
<a name="l00321"></a><a class="code" href="class_e_t_sheet_view.html#ae87a30f64df86317740a116b0af322f0">00321</a> <span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">void</span>         <a class="code" href="class_e_t_sheet_view.html#ae87a30f64df86317740a116b0af322f0" title="informs the viewport that the selection is on the right side">setSelRight</a>         ( <span class="keywordtype">void</span> )
<a name="l00322"></a>00322     { <a class="code" href="class_e_t_sheet_view.html#a21dc71862f8aeb325faffe7cc060c33f" title="selection is either on the right or on the left side">b_sel_left</a> = <span class="keyword">false</span>; }
<a name="l00323"></a>00323 <span class="comment"></span>
<a name="l00324"></a>00324 <span class="comment">    /// item provided in argument requests selecting first item to it&#39;s left</span>
<a name="l00325"></a>00325 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#ad382918511324f8cd92443b82de092b1" title="item provided in argument requests selecting first item to it&#39;s left">navLeaveLeft</a>        (<a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> * it_base);
<a name="l00326"></a>00326 <span class="comment"></span>
<a name="l00327"></a>00327 <span class="comment">    /// item provided in argument requests selecting first item to it&#39;s right</span>
<a name="l00328"></a>00328 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#a156cebbc44e1edc688673fbccddaa67e" title="item provided in argument requests selecting first item to it&#39;s right">navLeaveRight</a>       (<a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> * it_base);
<a name="l00329"></a>00329 <span class="comment"></span>
<a name="l00330"></a>00330 <span class="comment">    /// item provided in argument requests selecting first item above it</span>
<a name="l00331"></a>00331 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#a9f76384ab43367dcd137672d174d2ee4" title="item provided in argument requests selecting first item above it">navLeaveTop</a>         (<a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> * it_base);
<a name="l00332"></a>00332 <span class="comment"></span>
<a name="l00333"></a>00333 <span class="comment">    /// item provided in argument requests selecting first item below i</span>
<a name="l00334"></a>00334 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#aa3688736fb84b3349bf2200d70949ad4" title="item provided in argument requests selecting first item below i">navLeaveBtm</a>         (<a class="code" href="class_e_t_i___cplx_txt.html" title="class representing a complex text; this may or may not represent an equation">ETI_CplxTxt</a> * it_base);
<a name="l00335"></a>00335 
<a name="l00336"></a>00336 <span class="comment"></span>
<a name="l00337"></a>00337 <span class="comment">    //@}</span>
<a name="l00338"></a>00338 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00339"></a>00339 
<a name="l00340"></a>00340 
<a name="l00341"></a>00341 
<a name="l00342"></a>00342 
<a name="l00343"></a>00343     <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span><span class="comment"></span>
<a name="l00344"></a>00344 <span class="comment">    /** @name Editing support     */</span><span class="comment"></span>
<a name="l00345"></a>00345 <span class="comment">    //@{</span>
<a name="l00346"></a>00346 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00347"></a>00347 <span class="keyword">public</span>:
<a name="l00348"></a>00348 
<a name="l00349"></a>00349 <span class="comment"></span>
<a name="l00350"></a>00350 <span class="comment">    /// tell if we&#39;re in edit mode or not</span>
<a name="l00351"></a><a class="code" href="class_e_t_sheet_view.html#a545cc20dc6ba9a96694fc43980dea9d3">00351</a> <span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">bool</span>         <a class="code" href="class_e_t_sheet_view.html#a545cc20dc6ba9a96694fc43980dea9d3" title="tell if we&#39;re in edit mode or not">inEditMode</a>  ( <span class="keywordtype">void</span> )
<a name="l00352"></a>00352     { <span class="keywordflow">return</span> (<a class="code" href="class_e_t_sheet_view.html#a409d391051af68ef61ea75b882301be7" title="either a pointer to current editor or NULL if none is visible">temp_editor</a> != <a class="code" href="aclass__ddhc_8cc.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>); }
<a name="l00353"></a>00353 
<a name="l00354"></a>00354 <span class="comment"></span>
<a name="l00355"></a>00355 <span class="comment">    /// get current editor if any</span>
<a name="l00356"></a><a class="code" href="class_e_t_sheet_view.html#a18f6f599da9279d14eb8259b53ed4832">00356</a> <span class="comment"></span>    <span class="keyword">inline</span> QWidget *    <a class="code" href="class_e_t_sheet_view.html#a18f6f599da9279d14eb8259b53ed4832" title="get current editor if any">editor</a>      ( <span class="keywordtype">void</span> )
<a name="l00357"></a>00357     { <span class="keywordflow">return</span> <a class="code" href="class_e_t_sheet_view.html#a409d391051af68ef61ea75b882301be7" title="either a pointer to current editor or NULL if none is visible">temp_editor</a>; }
<a name="l00358"></a>00358 
<a name="l00359"></a>00359 <span class="comment"></span>
<a name="l00360"></a>00360 <span class="comment">    /// close current editor, if any; the text is not validated</span>
<a name="l00361"></a>00361 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#a2528546c81ecd3e77b9dd5105b5750ff" title="close current editor, if any; the text is not validated">closeEditor</a> ( <span class="keywordtype">void</span> );
<a name="l00362"></a>00362 
<a name="l00363"></a>00363 
<a name="l00364"></a>00364 <span class="keyword">private</span>:
<a name="l00365"></a>00365 <span class="comment"></span>
<a name="l00366"></a>00366 <span class="comment">    /// set current editor</span>
<a name="l00367"></a>00367 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#ae24286dc86a869a5817b128523550df3" title="set current editor">setEditor</a>   (QWidget * new_editor);
<a name="l00368"></a>00368 
<a name="l00369"></a>00369 
<a name="l00370"></a>00370 <span class="comment"></span>
<a name="l00371"></a>00371 <span class="comment">    //@}</span>
<a name="l00372"></a>00372 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00373"></a>00373 
<a name="l00374"></a>00374 
<a name="l00375"></a>00375 
<a name="l00376"></a>00376 
<a name="l00377"></a>00377 <span class="keyword">public</span>:
<a name="l00378"></a>00378 
<a name="l00379"></a>00379     <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span><span class="comment"></span>
<a name="l00380"></a>00380 <span class="comment">    /** @name Navigation    */</span><span class="comment"></span>
<a name="l00381"></a>00381 <span class="comment">    //@{</span>
<a name="l00382"></a>00382 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00383"></a>00383 
<a name="l00384"></a>00384 <span class="comment"></span>
<a name="l00385"></a>00385 <span class="comment">    /// uses provided factor to change the scale, making texts larger</span>
<a name="l00386"></a><a class="code" href="class_e_t_sheet_view.html#af4696c2081d49d2dcf6e6dab5b5f2c40">00386</a> <span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">void</span>         <a class="code" href="class_e_t_sheet_view.html#af4696c2081d49d2dcf6e6dab5b5f2c40" title="uses provided factor to change the scale, making texts larger">zoomIn</a>              (qreal factor = 1.2)
<a name="l00387"></a>00387     { <a class="code" href="class_e_t_sheet_view.html#a0a48b30df2d2cbf0d6bdea2ce12a63c8" title="cache current scale for simplicity">scale_to_s</a> *= factor; scale(factor, factor); }
<a name="l00388"></a>00388 
<a name="l00389"></a>00389 <span class="comment"></span>
<a name="l00390"></a>00390 <span class="comment">    /// uses provided factor&#39;s inverse (1/n) to change the scale, making texts smaller</span>
<a name="l00391"></a><a class="code" href="class_e_t_sheet_view.html#ab2418e2354197a47d5d5137878e741c2">00391</a> <span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">void</span>         <a class="code" href="class_e_t_sheet_view.html#ab2418e2354197a47d5d5137878e741c2" title="uses provided factor&#39;s inverse (1/n) to change the scale, making texts smaller">zoomOut</a>             (qreal factor = 1.2)
<a name="l00392"></a>00392     { <a class="code" href="class_e_t_sheet_view.html#a0a48b30df2d2cbf0d6bdea2ce12a63c8" title="cache current scale for simplicity">scale_to_s</a> /= factor; scale( 1 / factor, 1 / factor); }
<a name="l00393"></a>00393 
<a name="l00394"></a>00394 <span class="comment"></span>
<a name="l00395"></a>00395 <span class="comment">    /// change display angle, using the negative of the argument</span>
<a name="l00396"></a><a class="code" href="class_e_t_sheet_view.html#afbef86a2ebd7e22758d3e3a81b887187">00396</a> <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#afbef86a2ebd7e22758d3e3a81b887187" title="change display angle, using the negative of the argument">rotateLeft</a>          (qreal angle = 10)
<a name="l00397"></a>00397     { <a class="code" href="class_e_t_sheet_view.html#ae5f4709acc5b13182abb58f81bad6ae3" title="cache current rotation angle for simplicity">rot_ang_to_s</a> -= angle; rotate(-angle); }
<a name="l00398"></a>00398 
<a name="l00399"></a>00399 <span class="comment"></span>
<a name="l00400"></a>00400 <span class="comment">    /// change display angle, using the argument</span>
<a name="l00401"></a><a class="code" href="class_e_t_sheet_view.html#a7f0a6edc211ffccd10b003289d7200ca">00401</a> <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#a7f0a6edc211ffccd10b003289d7200ca" title="change display angle, using the argument">rotateRight</a>         (qreal angle = 10)
<a name="l00402"></a>00402     { <a class="code" href="class_e_t_sheet_view.html#ae5f4709acc5b13182abb58f81bad6ae3" title="cache current rotation angle for simplicity">rot_ang_to_s</a> += angle; rotate(angle); }
<a name="l00403"></a>00403 
<a name="l00404"></a>00404 <span class="comment"></span>
<a name="l00405"></a>00405 <span class="comment">    /// tell the rotation angle of this view to the scene</span>
<a name="l00406"></a><a class="code" href="class_e_t_sheet_view.html#af80568cd2833d1a5b16fc9967586b222">00406</a> <span class="comment"></span>    qreal               <a class="code" href="class_e_t_sheet_view.html#af80568cd2833d1a5b16fc9967586b222" title="tell the rotation angle of this view to the scene">getRotation</a>         ( <span class="keywordtype">void</span> )<span class="keyword"> const</span>
<a name="l00407"></a>00407 <span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="class_e_t_sheet_view.html#ae5f4709acc5b13182abb58f81bad6ae3" title="cache current rotation angle for simplicity">rot_ang_to_s</a>; }
<a name="l00408"></a>00408 
<a name="l00409"></a>00409 <span class="comment"></span>
<a name="l00410"></a>00410 <span class="comment">    /// return current scale of this view to the scene</span>
<a name="l00411"></a><a class="code" href="class_e_t_sheet_view.html#a1e9035cd7b62a675ee925f6ab70f4712">00411</a> <span class="comment"></span>    qreal               <a class="code" href="class_e_t_sheet_view.html#a1e9035cd7b62a675ee925f6ab70f4712" title="return current scale of this view to the scene">getScale</a>            ( <span class="keywordtype">void</span> )<span class="keyword"> const</span>
<a name="l00412"></a>00412 <span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="class_e_t_sheet_view.html#a0a48b30df2d2cbf0d6bdea2ce12a63c8" title="cache current scale for simplicity">scale_to_s</a>; }
<a name="l00413"></a>00413 
<a name="l00414"></a>00414 <span class="comment"></span>
<a name="l00415"></a>00415 <span class="comment">    /// sneak in to see what&#39;s up</span>
<a name="l00416"></a><a class="code" href="class_e_t_sheet_view.html#a6aae6386fb887c134c91268d37521422">00416</a> <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#a6aae6386fb887c134c91268d37521422" title="sneak in to see what&#39;s up">translate</a>           ( qreal dx, qreal dy )
<a name="l00417"></a>00417     { <a class="code" href="class_e_t_sheet_view.html#a02068ab57a1fa473306bc418dd913c23" title="the translation on X axis">trans_x</a>+= dx; <a class="code" href="class_e_t_sheet_view.html#aa8d2d483616fc12bb11e0799258cb614" title="the translation on Y axis">trans_y</a> += dy; <a class="code" href="class_e_t_sheet_view.html#a6aae6386fb887c134c91268d37521422" title="sneak in to see what&#39;s up">QGraphicsView::translate</a>(dx, dy); }
<a name="l00418"></a>00418 
<a name="l00419"></a>00419 <span class="comment"></span>
<a name="l00420"></a>00420 <span class="comment">    //@}</span>
<a name="l00421"></a>00421 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00422"></a>00422 
<a name="l00423"></a>00423 
<a name="l00424"></a>00424 
<a name="l00425"></a>00425     <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span><span class="comment"></span>
<a name="l00426"></a>00426 <span class="comment">    /** @name Commands interface    */</span><span class="comment"></span>
<a name="l00427"></a>00427 <span class="comment">    //@{</span>
<a name="l00428"></a>00428 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00429"></a>00429 <span class="comment"></span>
<a name="l00430"></a>00430 <span class="comment">    /// tell if we are running a command or we&#39;re in idle mode</span>
<a name="l00431"></a><a class="code" href="class_e_t_sheet_view.html#a06dcbfafe4f9990e89d5407fb0f20224">00431</a> <span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">bool</span>         <a class="code" href="class_e_t_sheet_view.html#a06dcbfafe4f9990e89d5407fb0f20224" title="tell if we are running a command or we&#39;re in idle mode">inCommand</a>           ( <span class="keywordtype">void</span> )
<a name="l00432"></a>00432     { <span class="keywordflow">return</span> (<a class="code" href="class_e_t_sheet_view.html#a6ad3d85251cba7939ca695e01e809888" title="currently running command / NULL if none is running">running_command</a> != <a class="code" href="aclass__ddhc_8cc.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>); }
<a name="l00433"></a>00433 <span class="comment"></span>
<a name="l00434"></a>00434 <span class="comment">    /// get a pointer to currently running command / NULL if in idle mode</span>
<a name="l00435"></a><a class="code" href="class_e_t_sheet_view.html#aa53de98a40f10ff81f1c9b290350b385">00435</a> <span class="comment"></span>    <span class="keyword">inline</span> <a class="code" href="class_e_t_vp_command.html" title="abstract class representing prerequisites for a command running in a ETSheetView">ETVpCommand</a> *<a class="code" href="class_e_t_sheet_view.html#aa53de98a40f10ff81f1c9b290350b385" title="get a pointer to currently running command / NULL if in idle mode">command</a>             ( <span class="keywordtype">void</span> )
<a name="l00436"></a>00436     { <span class="keywordflow">return</span> <a class="code" href="class_e_t_sheet_view.html#a6ad3d85251cba7939ca695e01e809888" title="currently running command / NULL if none is running">running_command</a>; }
<a name="l00437"></a>00437 <span class="comment"></span>
<a name="l00438"></a>00438 <span class="comment">    /// starts a command; will cancel previous command if running</span>
<a name="l00439"></a>00439 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#aede56f48bf9600e59e3a58e1af33fc0c" title="starts a command; will cancel previous command if running">startCommand</a>        (<a class="code" href="class_e_t_vp_command.html" title="abstract class representing prerequisites for a command running in a ETSheetView">ETVpCommand</a> * new_cmd);
<a name="l00440"></a>00440 <span class="comment"></span>
<a name="l00441"></a>00441 <span class="comment">    /// cancels currently running command</span>
<a name="l00442"></a>00442 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#a4717e93e01e82f791945007293c0a5f2" title="cancels currently running command">cancelCommand</a>       ( <span class="keywordtype">void</span> );
<a name="l00443"></a>00443 <span class="comment"></span>
<a name="l00444"></a>00444 <span class="comment">    /// stops current running command but ETCommand::accepted() is caled before</span>
<a name="l00445"></a>00445 <span class="comment"></span>    <span class="keywordtype">void</span>                <a class="code" href="class_e_t_sheet_view.html#ab6198569e016ba77703883a0472d69d7" title="stops current running command but ETCommand::accepted() is caled before">acceptCommand</a>       ( <span class="keywordtype">void</span> );
<a name="l00446"></a>00446 <span class="comment"></span>
<a name="l00447"></a>00447 <span class="comment">    //@}</span>
<a name="l00448"></a>00448 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00449"></a>00449 
<a name="l00450"></a>00450 
<a name="l00451"></a>00451 
<a name="l00452"></a>00452     <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span><span class="comment"></span>
<a name="l00453"></a>00453 <span class="comment">    /** @name Reimplemented events    */</span><span class="comment"></span>
<a name="l00454"></a>00454 <span class="comment">    //@{</span>
<a name="l00455"></a>00455 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00456"></a>00456 <span class="keyword">protected</span>:
<a name="l00457"></a>00457 
<a name="l00458"></a>00458     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a50f89d9edc61b751bc490972a0337640">contextMenuEvent</a>        ( QContextMenuEvent * event );
<a name="l00459"></a>00459     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#ada36dd53534f87a711a81243e0da82e0">dragEnterEvent</a>          ( QDragEnterEvent * event );
<a name="l00460"></a>00460     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a28caabca4065b8378b5b40b2803fbef6">dragLeaveEvent</a>          ( QDragLeaveEvent * event );
<a name="l00461"></a>00461     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a8d79e6d579436dd90f124e685544ae2a">dragMoveEvent</a>           ( QDragMoveEvent * event );
<a name="l00462"></a>00462     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#abc3f1c134ec46cb477a90f20569553be">dropEvent</a>               ( QDropEvent * event );
<a name="l00463"></a>00463     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a382d59ad121679add861ce3664fb4691">keyPressEvent</a>           ( QKeyEvent * event );
<a name="l00464"></a>00464     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a3a256e50cc5ff3e1e29d7130fa32f3c3">keyReleaseEvent</a>         ( QKeyEvent * event );
<a name="l00465"></a>00465     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#aab5f7c9530ffccccf9a6955111618606">mouseDoubleClickEvent</a>   ( QMouseEvent * event );
<a name="l00466"></a>00466     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#ab82cce4e9be3e76150fb047c1c729985">mouseMoveEvent</a>          ( QMouseEvent * event );
<a name="l00467"></a>00467     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a6aacfa293897e4a21efa5b8aa688cd0d">mousePressEvent</a>         ( QMouseEvent * event );
<a name="l00468"></a>00468     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a0e543916ab9f3e78bbe1420331946b27">mouseReleaseEvent</a>       ( QMouseEvent * event );
<a name="l00469"></a>00469     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a0ca511b80901e95fea827d86700be731">wheelEvent</a>              ( QWheelEvent * event );
<a name="l00470"></a>00470 
<a name="l00471"></a>00471     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#a1299bac40f077bdb2a070d24527f6b4a">setScene</a>                ( QGraphicsScene * scene );
<a name="l00472"></a>00472 
<a name="l00473"></a>00473     <span class="keywordtype">void</span>    <a class="code" href="class_e_t_sheet_view.html#ab4e76dbeb1e1f396d9d2851c812f1305">drawBackground</a>          ( QPainter * painter, <span class="keyword">const</span> QRectF &amp; rect );<span class="comment"></span>
<a name="l00474"></a>00474 <span class="comment">    //@}</span>
<a name="l00475"></a>00475 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00476"></a>00476 
<a name="l00477"></a>00477 
<a name="l00478"></a>00478 
<a name="l00479"></a>00479 
<a name="l00480"></a>00480     <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span><span class="comment"></span>
<a name="l00481"></a>00481 <span class="comment">    /** @name Save and load */</span><span class="comment"></span>
<a name="l00482"></a>00482 <span class="comment">    //@{</span>
<a name="l00483"></a>00483 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00484"></a>00484 
<a name="l00485"></a>00485 <span class="keyword">public</span>:
<a name="l00486"></a>00486 <span class="comment"></span>
<a name="l00487"></a>00487 <span class="comment">    /// creates an viewport in specified sheet based on DOM node</span>
<a name="l00488"></a>00488 <span class="comment"></span>    <span class="keyword">static</span> <a class="code" href="class_e_t_sheet_view.html" title="Widget capable of displaying an ETSheet content.">ETSheetView</a> *    <a class="code" href="class_e_t_sheet_view.html#afa4da51c58c53544c286da5c2d1dc2de" title="creates an viewport in specified sheet based on DOM node">loadXMLViewport</a>     (
<a name="l00489"></a>00489             <a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a> *           dest,
<a name="l00490"></a>00490             QWidget *           parent,
<a name="l00491"></a>00491             QDomElement         dom_e
<a name="l00492"></a>00492             );
<a name="l00493"></a>00493 
<a name="l00494"></a>00494 <span class="comment"></span>
<a name="l00495"></a>00495 <span class="comment">    /// creates an split in specified sheet based on DOM node</span>
<a name="l00496"></a>00496 <span class="comment"></span>    <span class="keyword">static</span> <span class="keywordtype">void</span> *           <a class="code" href="class_e_t_sheet_view.html#a13132d1d2d26028c5c47258b466c3f55" title="creates an split in specified sheet based on DOM node">loadXMLVpSplit</a>      (
<a name="l00497"></a>00497             <a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a> *           dest,
<a name="l00498"></a>00498             QWidget *           parent,
<a name="l00499"></a>00499             QDomElement         dom_e
<a name="l00500"></a>00500             );
<a name="l00501"></a>00501 
<a name="l00502"></a>00502 <span class="comment"></span>
<a name="l00503"></a>00503 <span class="comment">    /// saves the defining elements of the viewports in a sheet to DOM element</span>
<a name="l00504"></a>00504 <span class="comment"></span>    <span class="keyword">static</span> <span class="keywordtype">void</span>             <a class="code" href="class_e_t_sheet_view.html#ad511334ff3565031a0d64c08ca2a01b7" title="saves the defining elements of the viewports in a sheet to DOM element">saveXML</a>             (
<a name="l00505"></a>00505             <a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a> *           dest,
<a name="l00506"></a>00506             QDomElement         dom_e
<a name="l00507"></a>00507             );
<a name="l00508"></a>00508 <span class="comment"></span>
<a name="l00509"></a>00509 <span class="comment">    /// loads the tree of viewports and splits from DOM element</span>
<a name="l00510"></a>00510 <span class="comment"></span>    <span class="keyword">static</span> <span class="keywordtype">void</span>             <a class="code" href="class_e_t_sheet_view.html#a239fc84997d56af6b0ef9a2ac6ff9b5b" title="loads the tree of viewports and splits from DOM element">loadXML</a>             (
<a name="l00511"></a>00511             <a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a> *           dest,
<a name="l00512"></a>00512             QWidget *           parent,
<a name="l00513"></a>00513             QDomElement         dom_e
<a name="l00514"></a>00514             );
<a name="l00515"></a>00515 <span class="comment"></span>
<a name="l00516"></a>00516 <span class="comment">    /// saves current viewport in provided DOM element</span>
<a name="l00517"></a>00517 <span class="comment"></span>    <span class="keywordtype">void</span>                    <a class="code" href="class_e_t_sheet_view.html#a2dc2eb77d89287676250a729ebaea265" title="saves current viewport in provided DOM element">saveXMLViewport</a>     (
<a name="l00518"></a>00518             <a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a> *           dest,
<a name="l00519"></a>00519             QDomElement         dom_e
<a name="l00520"></a>00520             ) <span class="keyword">const</span>;
<a name="l00521"></a>00521 
<a name="l00522"></a>00522 <span class="comment"></span>
<a name="l00523"></a>00523 <span class="comment">    /// saves the split and all it&#39;s kids in provided DOM element</span>
<a name="l00524"></a>00524 <span class="comment"></span>    <span class="keyword">static</span> <span class="keywordtype">void</span>             <a class="code" href="class_e_t_sheet_view.html#ad0fbdb6a6248621e6feb1bdd6a6318bf" title="saves the split and all it&#39;s kids in provided DOM element">saveXMLVpSplit</a>          (
<a name="l00525"></a>00525             <a class="code" href="class_e_t_sheet.html" title="Class representing logical root for all elements contained in a document (sheet)">ETSheet</a> *           dest,
<a name="l00526"></a>00526             <span class="keyword">const</span> QSplitter *   spl,
<a name="l00527"></a>00527             QDomElement         dom_e
<a name="l00528"></a>00528             );
<a name="l00529"></a>00529 
<a name="l00530"></a>00530 <span class="comment"></span>
<a name="l00531"></a>00531 <span class="comment">    //@}</span>
<a name="l00532"></a>00532 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00533"></a>00533 
<a name="l00534"></a>00534 
<a name="l00535"></a>00535 
<a name="l00536"></a>00536 
<a name="l00537"></a>00537     <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span><span class="comment"></span>
<a name="l00538"></a>00538 <span class="comment">    /** @name Splitting management */</span><span class="comment"></span>
<a name="l00539"></a>00539 <span class="comment">    //@{</span>
<a name="l00540"></a>00540 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00541"></a>00541 <span class="keyword">public</span>:
<a name="l00542"></a>00542 
<a name="l00543"></a>00543 <span class="comment"></span>
<a name="l00544"></a>00544 <span class="comment">    /// Splits current viewport in two horizontal viewports</span>
<a name="l00545"></a>00545 <span class="comment"></span>    <span class="keywordtype">void</span>        <a class="code" href="class_e_t_sheet_view.html#add32836df095aa4250ffe2fa033a42ee" title="Splits current viewport in two horizontal viewports.">splitH</a>          ( <span class="keywordtype">void</span> );
<a name="l00546"></a>00546 
<a name="l00547"></a>00547 <span class="comment"></span>
<a name="l00548"></a>00548 <span class="comment">    /// Splits current viewport in two vertical viewports</span>
<a name="l00549"></a>00549 <span class="comment"></span>    <span class="keywordtype">void</span>        <a class="code" href="class_e_t_sheet_view.html#a6d9e4234493881260d619789f9186719" title="Splits current viewport in two vertical viewports.">splitV</a>          ( <span class="keywordtype">void</span> );
<a name="l00550"></a>00550 
<a name="l00551"></a>00551 <span class="comment"></span>
<a name="l00552"></a>00552 <span class="comment">    /// Toogles the orientation of the split between horizontal and vertical</span>
<a name="l00553"></a>00553 <span class="comment"></span><span class="comment">    /**</span>
<a name="l00554"></a>00554 <span class="comment">    *   The split that is toogled is the one hosting current viewport</span>
<a name="l00555"></a>00555 <span class="comment">    */</span>
<a name="l00556"></a>00556     <span class="keywordtype">void</span>        <a class="code" href="class_e_t_sheet_view.html#aeb3e8751e2cae148b3943a34cd2a8eb2" title="Toogles the orientation of the split between horizontal and vertical.">splitTgl</a>        ( <span class="keywordtype">void</span> );
<a name="l00557"></a>00557 
<a name="l00558"></a>00558 <span class="comment"></span>
<a name="l00559"></a>00559 <span class="comment">    /// Splitted viewports are rejoined</span>
<a name="l00560"></a>00560 <span class="comment"></span><span class="comment">    /**</span>
<a name="l00561"></a>00561 <span class="comment">    *   The splitter hosting this viewport is destroyed and it;s place is taken</span>
<a name="l00562"></a>00562 <span class="comment">    *   by this viewport</span>
<a name="l00563"></a>00563 <span class="comment">    */</span>
<a name="l00564"></a>00564     <span class="keywordtype">void</span>        <a class="code" href="class_e_t_sheet_view.html#a55de5e8d7506de62f30a9ec02ec473bf" title="Splitted viewports are rejoined.">rejoinVP</a>        ( <span class="keywordtype">void</span> );
<a name="l00565"></a>00565 
<a name="l00566"></a>00566 <span class="comment"></span>
<a name="l00567"></a>00567 <span class="comment">    /// gets info about the content of a split</span>
<a name="l00568"></a>00568 <span class="comment"></span>    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_e_t_sheet_view.html#aafba8a2401e193774e9a426209c60d0b" title="gets info about the content of a split">vp_SplitKids</a>        (
<a name="l00569"></a>00569             <span class="keyword">const</span> QWidget * parent,
<a name="l00570"></a>00570             SplitData *     sd
<a name="l00571"></a>00571             );
<a name="l00572"></a>00572 
<a name="l00573"></a>00573 <span class="keyword">private</span>:
<a name="l00574"></a>00574 
<a name="l00575"></a>00575 <span class="comment"></span>
<a name="l00576"></a>00576 <span class="comment">    /// create a top level split in associated MDI</span>
<a name="l00577"></a>00577 <span class="comment"></span>    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_e_t_sheet_view.html#ad5252ec7dc3018260e22cb69e3a00c0d" title="create a top level split in associated MDI">ivp_SplitTopL</a>      (
<a name="l00578"></a>00578             <a class="code" href="class_e_t_sheet_view.html" title="Widget capable of displaying an ETSheet content.">ETSheetView</a> * vp_loc,
<a name="l00579"></a>00579             <a class="code" href="class_mdi_child.html" title="form representing a document inside MDI area">MdiChild</a> * parent,
<a name="l00580"></a>00580             Qt::Orientation orient
<a name="l00581"></a>00581             );
<a name="l00582"></a>00582 
<a name="l00583"></a>00583 <span class="comment"></span>
<a name="l00584"></a>00584 <span class="comment">    /// create a child split in associated MDI</span>
<a name="l00585"></a>00585 <span class="comment"></span>    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_e_t_sheet_view.html#a1cfccfa0d6dec40525c6e44363438ec1" title="create a child split in associated MDI">ivp_SplitSplKid</a>    (
<a name="l00586"></a>00586             <a class="code" href="class_e_t_sheet_view.html" title="Widget capable of displaying an ETSheet content.">ETSheetView</a> * vp_loc,
<a name="l00587"></a>00587             QWidget * parent,
<a name="l00588"></a>00588             Qt::Orientation orient
<a name="l00589"></a>00589             );
<a name="l00590"></a>00590 
<a name="l00591"></a>00591 <span class="comment"></span>
<a name="l00592"></a>00592 <span class="comment">    //@}</span>
<a name="l00593"></a>00593 <span class="comment"></span>    <span class="comment">/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */</span>
<a name="l00594"></a>00594 
<a name="l00595"></a>00595 
<a name="l00596"></a>00596 
<a name="l00597"></a>00597 
<a name="l00598"></a>00598 
<a name="l00599"></a>00599 
<a name="l00600"></a>00600 
<a name="l00601"></a>00601 
<a name="l00602"></a>00602 
<a name="l00603"></a>00603 
<a name="l00604"></a>00604 <span class="keyword">private</span>:
<a name="l00605"></a>00605 <span class="comment"></span>
<a name="l00606"></a>00606 <span class="comment">    /// used by various flavours of constructors</span>
<a name="l00607"></a>00607 <span class="comment"></span>    <span class="keywordtype">void</span>        <a class="code" href="class_e_t_sheet_view.html#aee8f4f12fed7a00bc924e54a5fe7527a" title="used by various flavours of constructors">init</a>        ( <span class="keywordtype">void</span> );
<a name="l00608"></a>00608 
<a name="l00609"></a>00609 
<a name="l00610"></a>00610 
<a name="l00611"></a>00611 
<a name="l00612"></a>00612 
<a name="l00613"></a>00613 
<a name="l00614"></a>00614     <span class="comment">/*  FUNCTIONS    ======================================================= */</span>
<a name="l00615"></a>00615     <span class="comment">//</span>
<a name="l00616"></a>00616     <span class="comment">//</span>
<a name="l00617"></a>00617     <span class="comment">//</span>
<a name="l00618"></a>00618     <span class="comment">//</span>
<a name="l00619"></a>00619 
<a name="l00620"></a>00620 };  <span class="comment">/*  class ETSheetView   */</span>
<a name="l00621"></a>00621 
<a name="l00622"></a>00622 <span class="comment">/*  CLASS    =============================================================== */</span>
<a name="l00623"></a>00623 <span class="comment">//</span>
<a name="l00624"></a>00624 <span class="comment">//</span>
<a name="l00625"></a>00625 <span class="comment">//</span>
<a name="l00626"></a>00626 <span class="comment">//</span>
<a name="l00627"></a>00627 <span class="preprocessor">#endif // __ETSHEETVIEW_INC__</span>
<a name="l00628"></a>00628 <span class="preprocessor"></span><span class="comment">/* ------------------------------------------------------------------------- */</span>
<a name="l00629"></a>00629 <span class="comment">/* ========================================================================= */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_e_t_sheet_view_8h.html">ETSheetView.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

    <li class="footer">Generated on Sun Oct 23 2011 22:06:47 for EquTemper by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
   </ul>
 </div>
</body>
</html>
